package com.shan.domm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shan.domm.model.domain.DTOs.UserRegister;
import com.shan.domm.model.domain.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


/**
* @author 23949
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-03-27 20:31:45
*/
public interface UserService extends IService<User> {

    long userRegister(UserRegister userRegister);

    User userLogin(String userAccount, String userPassword,HttpServletRequest request);

    Boolean userLogout(HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    long addUser(User user);

    long deleteUserById(Integer id);

    long updateUser(User user);

    List<User> seacherUser(String name);
}
